<%@ page import="com.qipay.baas.model.Order" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    String msg=(String)request.getAttribute("msg");
%>
<!DOCTYPE HTML >
<html>
<head>
    <base href="<%=basePath%>">

    <title>火把支付</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <%
        String sysNo = (String) request.getAttribute("sysNo");
        Order order = (Order) request.getAttribute("order");
    %>
</head>

<body>

    <div style="font-size: 1rem;width:100%;border-bottom:1px solid #dcdcdc;line-height:2.2rem;">订单号:
        <span style="color:gray;"><%=sysNo%></span>
    </div>
    <div style="font-size: 1rem;width:100%;border-bottom:1px solid #dcdcdc;line-height:2.2rem;">银行代号：
        <span style="color:gray;"><%=order.getBankCode()%></span>
    </div>
    <div style="font-size: 1rem;width:100%;border-bottom:1px solid #dcdcdc;line-height:2.2rem;">卡号：
        <span style="color:gray;"><%=order.getBankCardNum()%></span></div>
    <div style="font-size: 1rem;width:100%;border-bottom:1px solid #dcdcdc;line-height:2.2rem;">绑定手机号：
        <span style="color:gray;"><%=order.getBankCardPhone()%></span>
    </div>

    <div style="font-size: 1rem;width:100%;border-bottom:1px solid #dcdcdc;line-height:2.2rem;">
        验证码
        <input style="width:60%;border:none;line-height:1.2rem;padding-left:0.5rem;" id="verifyCode" value="" type="text" placeholder="请输入验证码"/>
    </div>

    <div style="text-align:center;" >
        <input onclick="submit0();" id="submitsubmit" style="display:inline-block;cursor:pointer;font-size: 1.1rem;width:8rem;text-align:center;line-height:2rem;
	    margin-top:1rem;margin-left:0.5rem;padding:0 0.5rem;background:#3385ff;color:#fff;border-radius:3px;border:none;" type="button" value="提交"/>
    </div>

<script>
    function submit0(){
        var orderNo = "<%=sysNo%>";
        var merchantOrderNo = "<%=order.getTradeNo()%>";
        var verifyCode = document.getElementById("verifyCode").value;
        window.location.href="http://"+window.location.host+"/api/redirect/v1/union/quick/confirm?merchantOrderNo="+merchantOrderNo
            +"&orderNo="+orderNo+"&verifyCode="+verifyCode;
    }
</script>
</body>
</html>
